namespace Apps.Models
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    [Table("API_DETAIL")]
    public partial class API_DETAIL
    {
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
        public API_DETAIL()
        {
            API_ROLE = new HashSet<API_ROLE>();
        }

        [Key]
        [StringLength(40)]
        public string API_ID { get; set; }

        [Required]
        [StringLength(20)]
        public string API_NAME { get; set; }

        [Required]
        [StringLength(200)]
        public string URI { get; set; }

        public bool ENABLE { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<API_ROLE> API_ROLE { get; set; }
    }
}
